from django.urls import path, re_path
from . import views

# app1 功能的路由
urlpatterns = [
    # 主页路由
    path('', views.index, name='index'),
    # 添加用户
    path('add_user/', views.add_user, name='add_user'),
    # 修改用户
    re_path('^edit_user/(?P<edit_user_id>\d+)$', views.edit_user, name='edit_user'),
    # 删除用户
    re_path('^del_user/(?P<del_user_id>\d+)$', views.del_user, name='del_user'),
]
